package edu.stanford.bmir.protege.web.server.transform.service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.semanticweb.owlapi.model.IRI;

import edu.stanford.bmir.protege.web.shared.transform.MappingBean;

public class CreateOwlByXml implements OwlService {

	public String getOWLPath(String path,Map<String,String> pros,IRI projectIRI) {
		String filePath = "";
		try {
			XmlOwl xo = new XmlOwl( path,pros,projectIRI );
			filePath = xo.getOwlPath();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return filePath;
	}

	public List<MappingBean> getProperties(String path,Map<String,String> pros,IRI projectIRI) {
		
		List<MappingBean> mblst = new ArrayList<MappingBean>() ;
		try {
			XmlOwl xo = new XmlOwl( path,pros,projectIRI );
			mblst = xo.getProperties();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return mblst;
	}

}
